5.4
MEDIUM CVSS 3.1
CVE-2024-11831
Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript
Description

A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.

INFO

Published Date :

Feb. 10, 2025, 4:15 p.m.

Last Modified :

April 17, 2026, 2:16 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-11831 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat enterprise_linux
2 Redhat openshift_container_platform
3 Redhat satellite
4 Redhat ceph_storage
5 Redhat jboss_enterprise_application_platform
6 Redhat single_sign-on
7 Redhat openshift_service_mesh
8 Redhat fuse
9 Redhat data_grid
10 Redhat process_automation
11 Redhat integration_camel_k
12 Redhat advanced_cluster_management_for_kubernetes
13 Redhat quay
14 Redhat build_of_optaplanner
15 Redhat openshift_serverless
16 Redhat enterprise_linux
17 Redhat ansible_automation_platform
18 Redhat satellite
19 Redhat 3scale_api_management_platform
20 Redhat advanced_cluster_security
21 Redhat openshift_pipelines
22 Redhat discovery
23 Redhat openshift_dev_spaces
24 Redhat cryostat
25 Redhat logging_subsystem_for_red_hat_openshift
26 Redhat migration_toolkit_for_virtualization
27 Redhat openshift_distributed_tracing
28 Redhat openshift_ai
29 Redhat trusted_profile_analyzer
30 Redhat community.general
31 Redhat developer_hub
1 Gnu emacs
1 Gitoxidelabs gix-date
1 Ubuntu libefiboot
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Update the npm-serialize-javascript package to a secure version to prevent code injection and XSS attacks.
  • Update the npm-serialize-javascript package.
  • Sanitize all inputs before serialization.
  • Review deserialization contexts for risk.
Public PoC/Exploit Available at Github

CVE-2024-11831 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-11831 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-11831 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

This is a warrior's private repository, and every file in this repository belongs solely to me.

api docker github-config kotlin linux machine-learning python qt typescript unity web

Shell

Updated: 3 months ago
0 stars 0 fork 0 watcher
Born at : Feb. 28, 2026, 7:21 p.m. This repo has been linked 92 different CVEs too.

None

Updated: 3 months, 3 weeks ago
1 stars 0 fork 0 watcher
Born at : Feb. 25, 2026, 2:42 p.m. This repo has been linked 90 different CVEs too.

# مستودع asrar-mared هذا هو المستودع الرئيسي لمجموعة **المارد الرقمي**، نقطة التحكم المركزية التي تجمع كل المشاريع والميول التقنية تحت راية واحدة. يمثل الأساس الذي تُبنى عليه الفروع الأخرى، ويُدار منه كل شيء من تنظيم الكود إلى إدارة المجتمع. للاطلاع على المستودع: [asrar-mared](https://github.com/asrar-mared)

HTML CSS

Updated: 3 months, 3 weeks ago
2 stars 1 fork 1 watcher
Born at : Nov. 13, 2025, 5:30 a.m. This repo has been linked 194 different CVEs too.

None

MATLAB TypeScript JavaScript HTML CSS

Updated: 9 months, 1 week ago
99 stars 10 fork 10 watcher
Born at : April 6, 2023, 7:55 p.m. This repo has been linked 11 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-11831 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-11831 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Apr. 17, 2026

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2026:8568
  • CVE Modified by [email protected]

    Feb. 17, 2026

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2026:2769
  • CVE Modified by [email protected]

    Jan. 29, 2026

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2026:1536
  • CVE Modified by [email protected]

    Nov. 28, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:0381
  • CVE Modified by [email protected]

    Nov. 25, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:3870
    Added Reference https://access.redhat.com/errata/RHSA-2025:8233
    Added Reference https://access.redhat.com/errata/RHSA-2025:8512
  • CVE Modified by [email protected]

    Nov. 25, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:10853
    Added Reference https://access.redhat.com/errata/RHSA-2025:8078
    Added Reference https://access.redhat.com/errata/RHSA-2025:9294
  • CVE Modified by [email protected]

    Nov. 12, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:21203
  • CVE Modified by [email protected]

    Nov. 12, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:21068
  • CVE Modified by [email protected]

    Jun. 04, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:8551
  • CVE Modified by [email protected]

    Jun. 04, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:8544
  • CVE Modified by [email protected]

    Jun. 04, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:8479
  • CVE Modified by [email protected]

    May. 21, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:8059
  • CVE Modified by [email protected]

    May. 06, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:4511
  • CVE Modified by [email protected]

    Apr. 24, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHBA-2025:0304
  • CVE Modified by [email protected]

    Feb. 13, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:1468
  • CVE Modified by [email protected]

    Feb. 11, 2025

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2025:1334
  • New CVE Received by [email protected]

    Feb. 10, 2025

    Action Type Old Value New Value
    Added Description A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    Added CWE CWE-79
    Added Reference https://access.redhat.com/security/cve/CVE-2024-11831
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2312579
    Added Reference https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e
    Added Reference https://github.com/yahoo/serialize-javascript/pull/173
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.